#ifndef MOMOTAMUSIC_H
#define MOMOTAMUSIC_H

#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui { class MomotaMusic; }
QT_END_NAMESPACE

class MomotaMusic : public QWidget
{
    Q_OBJECT

public:
    MomotaMusic(QWidget *parent = nullptr);
    ~MomotaMusic();

    void initUi();
    // 存储图片路径和文本
    QJsonArray randomPiction();

    // 链接BtForm信号与槽函数
    void connectSignalAndSlots();
private slots:
    void on_quit_clicked();
    void onBtFormClick(int pageId);

protected:
    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
private:
    Ui::MomotaMusic *ui;
    QPoint dragPosition;
};
#endif // MOMOTAMUSIC_H
